#include<stdio.h>
int main()
{
	int i;
	float h = 100, sum = 100;
	for (i = 1;i <= 9;i++)
	{
		h = h / 2;
		sum = sum + 2 * h;
	}
	printf("The height of the tenth bounce is %f\n", h / 2.0);
	printf("The total distance after the tenth bounce is %f\n", sum);
	return 0;
}